asp.net mvc get current url in view

45

asp.net mvc get current url in view -

// Use the HttpRequest.Url.PathAndQuery Property to retrieve the absolute path and query like so:
<%= Request.Url.PathAndQuery %>

Comments

Submit
0 Comments